const electron = window.require('electron');
const { ipcRenderer, remote } = electron;
const { getGlobal, shell } = remote;

const changeSize = (width:number,height:number,title:string = '') =>{
  remote.getCurrentWindow().setSize(width, height);
  remote.getCurrentWindow().center();
  remote.getCurrentWindow().title = title;
}

export {
  changeSize,
  shell,
  remote,
  electron,
  getGlobal,
  ipcRenderer,
};
